# import sys
# from PyInstaller.__main__ import run

# if __name__ == '__main__':
#     sys.argv.extend(['labels.py', '--onefile', '--noconsole','--hidden-import=requests'])
#     run()

from distutils.core import setup
import py2exe

includes = ["cv2"]
excludes = []
packages = []
dll_excludes = []

setup(
    options = {"py2exe": {#"compressed": 2,
                          #"optimize": 2,
                          "includes": includes,
                          "excludes": excludes,
                          "packages": packages,
                          "dll_excludes": dll_excludes,
                          #"bundle_files": 3,
                          "dist_dir": "dist",
                          "xref": False,
                          "skip_archive": False,
                          "ascii": False,
                          "custom_boot_script": '',
                         }
              },
    windows=['sampleApp.py']
    )